package com.example.jucdemo.priorityThread.pac1;

/**
 * @Author by KoVaVo
 * @Date 2023-04-29 21:33
 * @Desc:
 */
public class run {
    public static void main(String[] args) {
        System.out.println("main thread begin priority = " + Thread.currentThread().getPriority());
        Thread.currentThread().setPriority(8);
        System.out.println("changed main thread priority = " + Thread.currentThread().getPriority());

        demo1 d = new demo1();
        d.start();
    }
}
